﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NinjaToolbox.PhysicsSystem
{
    public static class PhysicsSystemExtensions
    {
        public static bool IntersectsTest(this IPhysicsShape physicsShape, Vector3 lineBegin, Vector3 lineEnd)
        {
            return physicsShape.IntersectsTest(lineBegin, lineEnd, out Vector3 intersectPoint);
        }
    }
}
